Command/ startxtable
Command/ stoplinenote
Command/ style
Command/ synonym
Command/ textbackground
Command/ textnote
Command/ tooltip
Command/ type
Command/ typebuffer
Command/ unit
___
If your question is of interest to ot
ion=arabic-hindi, headstyle=\lefttoright, ]\unexpanded\def\doVariant#1#2#3%{\startlinenote[#1]{#2[ #3}#2\stoplinenote[#1]}\newcounter\countvariants\unexpanded\def\variant{\doglobal\increment\countvariants\normalexpanded{\doVariant{Varia:\countvariants}}}%%% DOCUMENT%\startsetups[not
Thanks for that, Wolfgang. I can only hope that, as the culprit is known, it
can be apprehended!
Idris: here is the document that I had sent (and many thanks to you and to
Pablo for the more general advice):
\unexpanded\def\doVariant#1#2#3%
{\startlinenote[#1]{#2] #3}#2\stoplinenote
This text shows a \startlinenote[one]{bariant
H} variant \stoplinenote[one].
This text shows a \startlinenote[two]{bariant
H}\prewordbreak variant\stoplinenote[two].
This text shows a \startlinenote[three]{bariant
H}\prewordbreak variant\stoplinenote[three
thing to do.
The original thread is three years old.
Anyway, this may help you (it isn’t my original code):
\unexpanded\def\doVariant#1#2#3%
{\startlinenote[#1]{#2] #3}#2\stoplinenote[#1]}
\newcounter\countvariants
\unexpanded\def\variant
{\doglobal\increment\countvariants
\section{EX2} \section{With start and stop} \startlinenote[one]
{\lemma ] \comment} \bodytext \stoplinenote[one]
\stoplinenumbering
\stoptext
- - -
In the above, I have been able to successfully do automate this using
the macro command variant. With this approach, however, the line
number is only
.
Anyway, this may help you (it isn’t my original code):
\unexpanded\def\doVariant#1#2#3%
{\startlinenote[#1]{#2] #3}#2\stoplinenote[#1]}
\newcounter\countvariants
\unexpanded\def\variant
{\doglobal\increment\countvariants
\normalexpanded{\doVariant{Varia
%
{\startlinenote[#1]{#2 #3}#2\stoplinenote[#1]}
\newcounter\MyCounter
\unexpanded\def\CritApp
{\doglobal\increment\MyCounter
\normalexpanded{\doCritApp{Varia:\MyCounter}}}
%~ \def\CritApp#1#2{#1}
\starttext
με τὴν τέχνην ταύτην \CritApp{ἴσα}{neut. pl. acc. adverbial, “equally
to” + dat
%
{\startlinenote[#1]{#2 #3}#2\stoplinenote[#1]}
\newcounter\MyCounter
\unexpanded\def\CritApp
{\doglobal\increment\MyCounter
\normalexpanded{\doCritApp{Varia:\MyCounter}}}
\starttext
supercalifragilisticexpialidocious
\CritApp{supercalifragilisticexpialidocious}{test}
\stoptext
On 18 Sep 2014, at 08
Hi Thomas, Luigi and Hans,
I have a feature suggestion that might be interesting to implement for
critical editions.
Here is my code sample:
\mainlanguage[la]
\unexpanded\def\doVariant#1#2#3%
{\startlinenote[#1]{#2] #3}#2%
\prewordbreak\stoplinenote[#1]}
\newcounter\VarCounter
On 11/18/2013 11:25 PM, Hans Hagen wrote:
[...]
\unexpanded\def\doCritApp#1#2#3%
{\startlinenote[#1]{#2 #3}(#2)\stoplinenote[#1]}
\newcounter\MyCounter
\unexpanded\def\CritApp
{\doglobal\increment\MyCounter
\normalexpanded{\doCritApp{Varia:\MyCounter}}}
[...]
so, in your macro
Dear Thomas, Luigi and Hans,
here is my first sample to the critical edition project of Thomas.
I think it is a bug.
This is the code:
\setuppapersize[A8]
\starttext
\startlinenumbering
This text shows a \startlinenote[one]{bariant
H} variant \stoplinenote[one].
This text shows
Dear Thomas, Luigi and Hans,
my second sample might be related to the first one. But I’m not sure it
is a bug.
Here is the code:
\setuppapersize[A8]
\newcounter\MyCounter
\def\CritApp#1#2{\increment\MyCounter%
\startlinenote[Varia:\MyCounter]{#1] #2}#1%
\prewordbreak\stoplinenote[Varia
]{#1] #2}#1%
\prewordbreak\stoplinenote[Varia:\MyCounter]}
\starttext
\startlinenumbering
\startlinenote[one]{hyphenated}this is a test on
\startlinenote[two]{with nested
linenote}hyphenation\prewordbreak\stoplinenote[two]\stoplinenote[one]
\CritApp{this is a test on \CritApp{hyphenation}{nested
Dear list,
I have a sample of nested linenotes (containing an user-defined command):
\setuppapersize[A8]
\newcounter\MyCounter
\def\CritApp#1#2{\increment\MyCounter%
\startlinenote[Varia:\MyCounter]{#1] #2}#1%
\prewordbreak\stoplinenote[Varia:\MyCounter]}
\starttext
\startlinenumbering
:
\setuppapersize[A8]
\newcounter\MyCounter
\def\CritApp#1#2{\increment\MyCounter%
\startlinenote[Varia:\MyCounter]{#1] #2}#1%
\prewordbreak\stoplinenote[Varia:\MyCounter]}
\starttext
\startlinenumbering
\startlinenote[one]{hyphenated}this is a test on
\startlinenote[two]{with nested
linenote}hyphenation
Dear list,
I have the following sample:
\newcounter\MyCounter
\def\CritApp#1#2{\increment\MyCounter%
\startlinenote[Varia:\MyCounter]{#1] #2}#1%
\prewordbreak\stoplinenote[Varia:\MyCounter]}
\starttext
\startlinenumbering
\CritApp{this is a first \CritApp{legibility}{how about a nested
un
hidalgo de los de lanza en astillero, adarga antigua, rocín flaco
y galgo corredor.\stoplinenote[MRU]
\stoplinenumbering
\stoptext
Last word in body doesn’t get hyphenated. I know that this is something
related to references.
But in the meantime: wouldn’t it be possible
]\Variant
{\increment\LineNote
\startlinenote[LineNote:\LineNote]{#2}#1%
\stoplinenote[LineNote:\LineNote]}
\starttext
\startlinenumbering
\dorecurse{10}{\Variant{\showhyphens{legislation}not
original}{variant} \Variant{\showhyphens{legibility}origin
=yes]
\setupnotation[linenote][alternative=serried]
\define[2]\Variant
{\increment\LineNote
\startlinenote[LineNote:\LineNote]{#2}#1%
\stoplinenote[LineNote:\LineNote]}
\starttext
\startlinenumbering
\dorecurse{10}{\Variant{\showhyphens{legislation
[LineNote:\LineNote]{#1 #2}
#1%
\stoplinenote[LineNote:\LineNote]}
\starttext
\startlinenumbering
\dorecurse{10}{\Variant{not original}{variant}
\Variant{origin}{variants} }
\stoplinenumbering
\stoptext
I have realized that hyphenation is disabled in body text when
\increment
Dear list,
in the following sample:
\setuppapersize[A6]
\newcounter\LineNote
\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]
\define[2]\Variant
{\increment\LineNote
\startlinenote[LineNote:\LineNote]{#1 #2}
#1%
\stoplinenote[LineNote:\LineNote
of ...
1 \setupnotation[linenote][compress=yes]
2 \starttext
3
4 \startlinenumbering
5 \linenote{Without this note, line numbering from ranges is
6 right}\startlinenote[one]{This should have lines 1 to 3.}line one\\
7 line two\\
8 line three\stoplinenote[one]
9
}\startlinenote[one]{This should have lines 1 to 3.}line one\\
line two\\
line three\stoplinenote[one]
\stoplinenumbering
\stoptext
It happens when compressed linenotes are enabled and there is a linenote
before the \startlinenote. In that case, only the first line is
numbered, not the last.
Could you
this note, line numbering from ranges is
right}\startlinenote[one]{This should have lines 1 to 3.}line one\\
line two\\
line three\stoplinenote[one]
\stoplinenumbering
\stoptext
It happens when compressed linenotes are enabled and there is a linenote
before the \startlinenote. In that case, only
%
\stoplinenote[\getnumber[lnt]]%
\incrementnumber[lnt]}
1. Use came case for your own command names to avoid conflicts with
core commands.
2. Don’t use simple numbers as reference names.
3. You can’t use nested brackets which causes problems with the
parser for the arguments. What you
Dear list,
I have the following code:
\definenumber[lnt]
\setupnote[linenote][paragraph=yes]
\def\variant#1#2{%
\startlinenote[0]{#1] #2}#1%
\stoplinenote[0]}
\starttext
\startlinenumbering
\variant{body text}{variant}
\stoplinenumbering
\stoptext
And I
Am 21.06.2013 um 19:40 schrieb Pablo Rodríguez oi...@web.de:
Dear list,
I have the following code:
\definenumber[lnt]
\setupnote[linenote][paragraph=yes]
\def\variant#1#2{%
\startlinenote[0]{#1] #2}#1%
\stoplinenote[0]}
\starttext
\startlinenumbering
: entitates W} entia \stoplinenote[one] non
sunt multiplicanda \startlinenote[two]{praeter necessitatem: sine
necessitate H} praeter necessitatem \stoplinenote[two].
\stoplinenumbering
\stoptext
And with latest beta I get an error, since blank spaces before
\startlinenote...\stoplinenote are removed
]
\definelinenote[linenote]
\starttext
\startlinenumbering
Entia non sunt multiplicanda \startlinenote[one]{praeter necessitatem]
sine necessitate H} praeter necessitatem \stoplinenote[one].
\stoplinenumbering
\stoptext
If I'm not wrong, I'm afraid there might be a bug here, since there is
no space between
to the last.}
\dorecurse{40}{test }.
\stoplinenote [one]
\linenote {A simple linenote does not have a number range}
\dorecurse{30}{test }\removeunwantedspaces.
\stoplinenumbering
\stoptext
but as you mention the interface is a bit problematic as start/stop is
not nice when being nested:
\let
I'm trying to get straight in my head what critical-edition-related
commands are already implemented in ConTeXt.
Implemented:
(a) footnotes on specific lines, specified inline: \linenote{note text}
(b) ditto on line ranges: \startlinenote[tag]{note text} ... \stoplinenote[tag]
(c) tag a line
Am 20.07.2012 um 19:33 schrieb Sietse Brouwer:
Hans wrote:
but as you mention the interface is a bit problematic as start/stop is not
nice when being nested
Do you mean it doesn't look nice, or is it so that nesting or
interleaving \startlinenote[tag] ... \stoplinenote[tag] environments
\linenote {oeps 4} test test test test test test
test \linenote {oeps 5} test test test test test test
test \stoplinenote [well] test test test test test test
\stoplinenumbering
\stoptext
not entirely but somewhat similar
best is to team with Idris and Thomas in writing down specs for what
more needed
test test
test \linenote {oeps} test test test test test test
test \extralinenote {oeps} test test test test test test
test \stoplinenote [well] test test test test test test
\stoplinenumbering
\stopbuffer
{\typebuffer[test] \getbuffer[test]} \page
\startbuffer[setup]
\setuplinenumbering
[align=left
35 matches
Mail list logo